package edu.ccit.shudong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author Suting Luo
 * @since 2024-10-09
 */
@Getter
@Setter
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 帖子
     */
    private Long postId;

    /**
     * 作者
     */
    private Long fromUser;

    /**
     * 作者
     */
    private Long toUser;

    /**
     * 内容
     */
    private String content;

    /**
     * 时间
     */
    private LocalDateTime insertDate;

    /**
     * 是否删除
     */
    private Integer active;

    private Long commentId;

    private Long userId;
}
